package rtti;

import framework.AbstractTest;

/**
 * Created by shane on 2018/6/12.
 */

class Building {}
class House extends Building {}
public class ClassCasts extends AbstractTest {

    @Override
    public void test(String[] args) {
        super.test(args);

        Building b = new House();
        Class<House> houseClass = House.class;
        House h = houseClass.cast(b);
        h = (House) b;
    }
}
